package com.geek.javase.ch02.test6;

import java.util.Date;

/*
 *@author wangpeng
 *2025/10/10 20:06
 *@description TODO
 */
public class Test {
    public static void main(String[] args) {
        //商品
        Goods g1 = new Goods("话筒" , 9.9,"声音清晰" ,  10);
        Goods g2 = new Goods("笔记本" , 6669.9,"耐摔" , 5);
        Goods g3 = new Goods("鼠标" ,89.9, "灵活" ,19);
        Goods[] goods1 = {g1 , g2 , g3};
        Goods[] goods2 = {g1 , g3};

        //用户
        Users user = new Users("张三" , "安徽合肥" , "12312312313");

        //订单
        Orders orders1 = new Orders("001L" , user , goods2);
        Orders orders2 = new Orders("002L" , user , goods1);
        Orders[] orders = {orders1 , orders2};

        //测试方法
        //下单
        user.setOrders(orders);
        user.xiaDan();

        //订单详情
        orders1.showOrderDetail();
        System.out.println("------------------------------------");
        orders2.showOrderDetail();

    }

}
